<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>好利来蛋糕官网_蛋糕3小时急送_口感不满即可退货</title>
    <link rel="stylesheet" href="css/rest.min.css">
    <link rel="stylesheet" href="css/footer.min.css">
    <link rel="stylesheet" href="css/header.min.css">
    <link rel="stylesheet" href="css/index.min.css">
    <link rel="stylesheet" href="css/login.min.css">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>

<body>
    <header class="header">
        <div class="head">
            <a href="index.html"><img src="images/logo.png" alt="" class="logo_1"></a>
            <div class="right_head">
                <div class="top_h">
                    <span class="dizhi">
                        <a href="" >西安</a> 
                    </span>
                    <span class="shoppingcar">
                        <span>0</span>件
                    </span>
                    <span class="denglu"><a href="login.html">登录</a> </span>
                    <span class="zhuce"><a href="resgister.html">注册</a> </span>
                </div>
                <div class="bottom_h">
                    <ul class="banner">
                        <li class="navmenu">
                            <a href="goodslist.html">
                                <span>All Products</span><br>
                                <span>全部产品</span>
                            </a>
                        </li>
                        <li class="navmenu" id="jinav2">
                            <a href="">
                                <span>Cake Series</span><br>
                                <span>蛋糕系列</span>
                            </a>
                            <ul class="sub_nav" style="display: none;">
                                <li style="border-bottom:none;"><a href="">新品系列</a></li>
                                <li style="border-bottom:none;"><a href="">经典系列</a></li>
                                <li style="border-bottom:none;"><a href="">儿童系列</a></li>
                                <li style="border-bottom:none;"><a href="">尊爱系列</a></li>
                            </ul>
                        </li>
                        <li class="navmenu">
                            <a href="">
                                <span>Wagashi</span><br>
                                <span>零食糕点</span>
                            </a>
                        </li>
                        <li class="navmenu" style="border:none;">
                            <a href="about.html">
                                <span>About Us</span><br>
                                <span>关于我们</span>
                            </a>
                        </li>
                    </ul>
                    <div class="h_phone"><img src="images/phone_icon.png" height="15"> 400-700-5999</div>
                    <div class="h_navserch">
                        <input type="text">
                    </div>
                </div>

            </div>

    </header>
    <div class="h_user">
        <span></span> 用户登录
        <span style="float:right;"></span>
    </div>
    <!-- 表单 -->
    <div class="login_t">
        <form action="#" method="get">
            <table>
                <tbody>
                    <tr>
                        <td><label for="username">用户名</label></td>
                        <td><input type="text" id="username" placeholder="请输入姓名">
                        </td>
                    </tr>
                    <tr>
                        <td><label for="password">密&nbsp;&nbsp;码</label></td>
                        <td><input type="password" id="password" placeholder="请输入密码">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: center;"><a href="index.html"><button id="login_btn" class="submit">登录</button></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="resgister.html" class="resgi_btn">免费注册</a></td>
                    </tr>
                </tbody>
            </table>

        </form>
    </div>
    <footer class="footer">

        <div class="h_footerhelp">
            <p style="width:976px;"> 帮助中心 <i></i> </p>
            <div class="h_footmenu">
                <dl>
                    <dt class="bg0"> <i style="background:url(images/bj3.png) no-repeat;"></i>购物指南</dt>
                    <dd> <a href="/article.php?id=7">购物流程</a> </dd>
                    <dd> <a href="/article.php?id=9">蛋糕尺寸</a> </dd>
                </dl>
                <dl>
                    <dt class="bg1"> <i style="background:url(images/bj3.png) no-repeat;"></i>订购范围</dt>
                    <dd> <a href="/article.php?id=12">地图查询</a> </dd>
                    <dd> <a href="/article.php?id=13">团购业务</a> </dd>
                </dl>
                <dl>
                    <dt class="bg2"> <i style="background:url(images/bj3.png) no-repeat;"></i>公司服务</dt>
                    <dd> <a href="/article.php?id=14">储值卡</a> </dd>
                    <dd> <a href="/article.php?id=60">西安门店</a> </dd>
                    <dd> <a href="/article.php?id=77">官网营业资质</a> </dd>
                </dl>
                <dl>
                    <dt class="bg3"> <i style="background:url(images/bj3.png) no-repeat;"></i>企业招聘</dt>
                    <dd> <a href="/article.php?id=17">好利来招聘</a> </dd>
                    <dd> <a href="/article.php?id=18">黑天鹅招聘</a> </dd>
                    <dd> <a href="/article.php?id=81">好利来招聘wap</a> </dd>
                </dl>
                <dl>
                    <dt class="bg4"> <i style="background:url(images/bj3.png) no-repeat;"></i>售后服务</dt>
                    <dd> <a href="">投诉渠道</a> </dd>
                    <dd> <a href="">客服中心</a> </dd>
                    <dd> <a href="/">加盟维权</a> </dd>
                </dl>
                <dl>
                    <dt class="bg5"> <i></i>友情链接</dt>
                    <dd> <a href="">黑天鹅蛋糕官网</a> </dd>
                    <dd> <a href="">罗红摄影艺术馆</a> </dd>
                    <dd> <a href="">百度</a> </dd>
                </dl>
            </div>
        </div>
        <div class="h_footer">
            <span>
		        <p> Copyright2010 ©北京市好利来食品有限公司 版权所有 <br>京icp备15012142号 <br>好利来官方邮箱：info@holiland.com <br></p>
		        <p>客服电话：400-700-5999</p>
		        <p>注册地址：北京市朝阳区观音堂文化大道甲6号北201室<br>食品流通许可证号：<br>统一社会信用代码：91110105721420005Y</p>
	            </span>
            <div class="h_footerright">
                <h4> FOLLOW US </h4>
                <a class="h_weixin"></a>
                <div class="h_fenxiang">
                    <p> 在微信上关注我们 </p>
                    <img src="images/weixin.jpg">
                </div>
            </div>

        </div>
    </footer>
    <div id="h_footerfix">
        <a href=""> <span><img src="images/msg2@68x66.png" alt=""></span>联系客服，在线咨询</a>
    </div>
    </div>

</body>

</html>
<script src="jQuery.js"></script>
<script src="menue.min.js"></script>
<script>
    $(function() {
        let username = sessionStorage.getItem("username");
        let password = sessionStorage.getItem("password");
        if (username && password) {
            $("#username").val(username)
            $("#password").val(password)
            $("#login_btn").click()
        }
    })


    $("#login_btn").click(function() {
        let username = $("#username").val()
        let password = $("#password").val()

        if ((username && password)) {
            $.ajax({
                url: "http://10.35.164.110:81/login",
                data: {
                    username: username,
                    password: password
                },
                success(data) {
                    if (data === "success") {
                        alert("登录成功")
                        if ($("#autologin").prop("checked")) {
                            sessionStorage.setItem("username", username)
                            sessionStorage.setItem("password", password)
                        }
                        location.href = "http://10.35.162.99/haolilai/index.html"
                    } else {
                        alert("用户名或密码错误")
                    }
                }
            })
        } else {
            alert("输入错误")
        }
    })
</script>